﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:apexControls="clr-namespace:Apex.Controls"
    xmlns:apexCommands="clr-namespace:Apex.Commands"
    xmlns:apexConverters="clr-namespace:Apex.Converters">

    <Style TargetType="{x:Type apexControls:TabbedDocumentInterface}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type apexControls:TabbedDocumentInterface}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">

                        <Grid>
                            <TabControl 
                                x:Name="PART_DocumentsTabControl" Visibility="Hidden" 
                                ItemTemplate="{TemplateBinding TabHeaderTemplate}"
                                ContentTemplate="{TemplateBinding TabContentTemplate}" />
                            <ContentControl x:Name="PART_ContentControl" Content="{TemplateBinding Content}" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>